package com.bdd.jpa.service.message;

import com.bdd.jpa.entity.dto.MessageDto;
import com.bdd.jpa.entity.vo.MessageVo;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.quartz.SchedulerException;

import java.util.List;

/**
 * @Author Bdd
 * @Description
 * @Date 2019/9/23 16:20
 */
public interface MessageService {

    public Boolean save(MessageDto messageDto) throws Exception;

    public Boolean update(MessageDto messageDto) throws Exception;

    public Boolean delete(Long id) throws SchedulerException, JsonProcessingException;

    public MessageVo details(Long id);

    List<MessageVo> list();
}
